package cn.com.ctbri.geomonitor.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.activiti.engine.IdentityService;
import org.activiti.engine.identity.Group;
import org.springframework.stereotype.Service;

import cn.com.ctbri.geomonitor.service.GroupRestService;
@Service("groupRestService")
public class GroupRestServiceImpl implements GroupRestService {
	
	
	@Resource(name = "identityService")
	private IdentityService identityService;

	//查询去全部用户组	
	public List<Group> list() {
		return identityService.createGroupQuery().list();
	}	
}
